// SocketConnection.h: interface for the CSocketConnection class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SOCKETCONNECTION_H__73684CFA_37B0_40AC_B2CC_076A39D55898__INCLUDED_)
#define AFX_SOCKETCONNECTION_H__73684CFA_37B0_40AC_B2CC_076A39D55898__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CSocketConnection  
{
public:
	int Receive(char* buf, int len);
	int Receive(char* buf, int len, int timeout);

	void Send(const char* buf, int len);
	void Connect(const char* ip, const char* port);
	CSocketConnection();
	virtual ~CSocketConnection();
	void SetSocketOpt(int level, int optname, const char* optval, int optlen);


protected:
	SOCKET m_socket;

};


#endif // !defined(AFX_SOCKETCONNECTION_H__73684CFA_37B0_40AC_B2CC_076A39D55898__INCLUDED_)
